package com.ruoyi.jpbi.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.jpbi.domain.jianshe.Planproduct;
import com.ruoyi.jpbi.mapper.PlanproductMapper;
import com.ruoyi.jpbi.service.PlanproductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlanproductServiceImpl implements PlanproductService{

    @Autowired
    PlanproductMapper planproductMapper;

    @Override
    public List<Planproduct> findAllByUser(Planproduct planproduct) {
        return planproductMapper.findAllByUser(planproduct);
    }

    @Override
    public int insertPlanproduct(Planproduct planproduct) {
        return planproductMapper.insertPlanproduct(planproduct);
    }

    @Override
    public Planproduct findAllById(Long id) {
        return planproductMapper.findAllById(id);
    }

    @Override
    public int updatePlanproduct(Planproduct planproduct) {
        return planproductMapper.updatePlanproduct(planproduct);
    }

    @Override
    public int deletePlanproductByIds(String ids) {
        return planproductMapper.deletePlanproductByIds(ids);
    }
}
